home *** CD-ROM | disk | FTP | other *** search
/ Univers Mac Interactif 42 / Univers Mac Interactif - Issue 42.iso / Internet / MacHTTP 2.0 / MacHTTP Software & Docs / MacHTTP.config < prev    next >
Text File  |  1994-12-18  |  6KB  |  150 lines

  1. #MacHTTP Configuration file, v. 2.0
  2. #
  3. #The format of this file is free form, with a few exceptions. Lines not
  4. #starting with a recognized keyword are ignored.
  5. #Note, all entries are converted to upper case by MacHTTP, so the config file isn't
  6. #case sensitive, with the exception of Mac file types and creators below.
  7.  
  8. #Note that any text styles like bold or underline in this file are purely cosmetic
  9. # and are only intended to make the file easier to read. The styles are not required.
  10. #Legal config file keywords will appear as BOLD text if this file is viewed with
  11. # SimpleText or TeachText.
  12.  
  13. # The version number below must match MacHTTP's version number
  14. VERSION 2.0
  15.  
  16. ######################################################
  17. # "Special" Files
  18. #
  19. #The following line defines the default file type if a suffix match isn't found.
  20. #The syntax is: DEFAULT <default transfer type> <default MIME type>
  21. DEFAULT TEXT text/html
  22.  
  23. #The following lines specify where to find HTML files for error messages, the
  24. #default home (or index) page, the name of the log file, and the message
  25. #returned for security violations. Any of these three file directives point to a
  26. #HTML document, script, or CGI application.
  27. #
  28. #NOTE!!! INDEX must be a simple file name, not a path like the other files.
  29. INDEX   Default.html
  30. ERROR   :Error.html
  31. NOACCESS :NoAccess.html
  32.  
  33. #If the LOG file directive is missing or commented out, no logging will occur.
  34. LOG     :MacHTTP.log
  35.  
  36. ####################################################
  37. # The following commands can be used to adjust MacHTTP's behavior and
  38. # performance. Most of them can be adjusted via AppleScript and AppleEvents
  39. # as well.
  40.  
  41. #Sets the timeout for inactive connections to 60 seconds
  42. TIMEOUT 60
  43.  
  44. #Sets the max number of simultaneous users to 10.
  45. #The minimum value is 3, the maximum is 48
  46. #For larger values, you should monitor memory usage and increase
  47. #MacHTTP's memory allocation in the Finder accordingly.
  48. MAXUSERS 10
  49.  
  50. #Sets the number of "listens" MacHTTP performs simultaneously. For
  51. #busy servers with clients that report "Unable to connect" errors,
  52. #this number should be increased. If the "Listening" statistic in
  53. #the status window ever drops to 1, some clients may miss connecting.
  54. #Default is 5, minimum is 3, maximum is 48. Never set the number of
  55. # listens to be more than the MAXUSERS!
  56. MAXLISTENS 6
  57.  
  58. #A single copy of MacHTTP only listens on a single port for multiple
  59. #connections. The HTTP standard port is 80. Users may define any port
  60. #they'd like to listen on, but internet standards say that ports
  61. #numbered 1024 and below are reserved for "Well known services" that
  62. #are pre-defined. That means if you change MacHTTP's port from 80,
  63. #you should pick a number greater than 1024 to avoid conflicting with
  64. #things like telnet, gopher, ftp, nfs, pop, etc. that all have ports
  65. #assigned below 1024.
  66. PORT 80
  67.  
  68. # This is the number of ticks that MacHTTP will "steal" from other processes while
  69. # sending data to clients. This equates directly to how much time MacHTTP will spend
  70. # processing connections. Your Mac will effectively be dedicated to MacHTTP for this
  71. # period of time. The argument is in "ticks", which are 60ths of a second. The default
  72. # is .5 seconds. (30 ticks) Values can range between 0 and 120.
  73. PIG_DELAY 30
  74.  
  75. # This is the chunk size that MacHTTP will divide file transfers into. The larger the
  76. # chunk, the longer it will take to transmit over slow connections. The smaller it is, the
  77. # more times MacHTTP will be able to swap between servicing multiple connections and
  78. # freeing the Mac to work on other processes. The argument represents the max number of
  79. # bytes to be sent in a single MacTCP write to the client. The min is 256, the max is 10240.
  80. DUMP_BUF_SIZE 4096
  81.  
  82. # MacHTTP can be configured to eliminate DNS accesses. For best performance,
  83. # uncomment the following line. MacHTTP will log IP addresses rather than
  84. # host names, but the software will perform much faster when used with 
  85. # slow domain name servers.
  86. #NO_DNS
  87.  
  88. #####################################################
  89. #These lines define the suffix and file type mappings for MIME types.
  90. #The syntax is <type> <suffix> <mac file type> <mac creator> <mime type>
  91. #
  92. #Unspecified parameters should be replaced with "*".  MacHTTP tries to match
  93. #a file suffix first. Failing that, it tries to match Mac file type info, and if it
  94. #can, Mac creator info as well. Matching either suffix or type/creator determines
  95. #the transfer type and MIME type. If the client supports HTTP/1.0, the appropriate
  96. #MIME header will be constructed and returned, based on the info below.
  97. #Scripts are responsible for generating their own HTTP/1.0 headers!!!
  98.  
  99. TEXT    .HTML TEXT * text/html
  100. BINARY  .GIF  GIFf * image/gif
  101. CGI .CGI APPL * text/html
  102. ACGI .ACGI APPL * text/html
  103. SCRIPT  .SCRIPT TEXT * text/html
  104. SCRIPT  * TEXT ToyS text/html
  105. APPL    .EXE APPL * text/html
  106. TEXT    .TEXT TEXT * text/plain
  107. TEXT    .TXT TEXT * text/plain
  108. TEXT   .HQX TEXT * application/mac-binhex40
  109. BINARY  .JPG JPEG * image/jpeg
  110. BINARY  .JPEG JPEG * image/jpeg
  111. BINARY  .PICT PICT * image/pict
  112. BINARY .AU * * audio/basic
  113. BINARY .AIFF * * audio/x-aiff
  114. BINARY .XBM * * image/x-xbm
  115. BINARY  .MOV MOOV * video/quicktime
  116. BINARY .MPEG MPEG * video/mpeg
  117. BINARY .WORD WDBN MSWD application/msword
  118. BINARY .XL XLS3 * application/excel
  119. BINARY .SIT SITD * application/x-stuffit
  120. BINARY .PDF PDF%20 * application/pdf
  121.  
  122. #####################################################
  123. # Security configuration
  124. #
  125.  
  126. # Security realms - see the Security tutorial for more details
  127. #REALM workers Co-Workers
  128. #REALM cust Customers
  129.  
  130. #IP and domain name security. There is an implied "DENY *" that is evaluated 
  131. #prior to any address security specifications if they are present. Otherwise, the default is
  132. #an implied "ALLOW *". End complete host IP addresses with a "." for an exact match. 
  133. #Otherwise a statement like "ALLOW 129.106.3" would match hosts 129.106.30.*,
  134. #129.106.31.*, 129.106.32.*, etc.
  135. #
  136. #You may also specify domain names for ALLOW and DENY statements.
  137. #The domain names are matched from right to left, as opposed to the
  138. #left to right matches done for IP address ALLOW and DENY statements. Also, the
  139. #domain names you specify are case-sensitive and MUST end with a period (.).
  140. #For example:
  141. #  ALLOW abc.edu.
  142. #  DENY mac22.abc.edu.
  143. #would deny all hosts (implicit DENY *), allow any abc.edu node, and deny the
  144. #specific host, mac22.abc.edu.
  145.  
  146. #NOTE!!! "ALLOW *" and "DENY *" are not valid syntax! 
  147.  
  148. #ALLOW 123.45.6.
  149. #DENY 123.45.6.7.
  150.